<template>
 <div class="chen">
        <h2>未完成</h2>
        <div v-for="(item, index) in data.addList" :key="index">
          <li v-if="item.flg == false">
            <input type="checkbox" v-model="item.flg" />
            <span>{{ item.name }}</span>
            <span>{{ item.data }}</span>
            <span @click="del(index)" class="del">删除</span>
          </li>
        </div>
</template>

<script>
export default {
  setup(props) {},
  components: {},
};
</script>
<style scoped lang='scss'>
.chen {
  margin: 50px auto;
  width: 800px;
  border: 1px solid #000;
  li {
    width: 100%;
    display: flex;
    justify-content: space-between;
    line-height: 50px;
    background: #ccc;
    margin-top: 10px;
    input {
      margin-left: 20px;
    }
    .del {
      display: block;
      margin-right: 20px;
    }
  }
  .chenli {
    background: #1c2d39;
    color: #fff;
  }
}
</style>
